package com.jjiang.bbmall.member.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.jjiang.bbmall.member.exception.PhoneExistsException;
import com.jjiang.bbmall.member.exception.UserNameExistsException;
import com.jjiang.bbmall.member.vo.MemberLoginVo;
import com.jjiang.bbmall.member.vo.MemberRegistVo;
import com.jjiang.common.utils.PageUtils;
import com.jjiang.bbmall.member.entity.MemberEntity;

import java.util.Map;

/**
 * 会员
 *
 * @author jingjiang
 * @email 1259029328@qq.com
 * @date 2022-11-01 18:02:20
 */
public interface MemberService extends IService<MemberEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void regist(MemberRegistVo vo);

    void checkPhoneUnique(String phone) throws PhoneExistsException;

    void checkUserNameUnique(String userName) throws UserNameExistsException;

    MemberEntity login(MemberLoginVo vo);
}

